package com.xdtech.transportation.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.alibaba.druid.support.logging.Log;
import com.xdtech.common.service.IBaseService;
import com.xdtech.sys.vo.UserItem;
import com.xdtech.transportation.model.TranOrder;
import com.xdtech.transportation.vo.TranOrderItem;
import com.xdtech.web.model.Pagination;

/**
 * 
 * @author max.zheng
 * @create 2015-03-17 11:46:05
 * @since 1.0
 * @see
 */
public interface TranOrderService extends IBaseService<TranOrder>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2015-03-17 11:46:05
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdateTranOrder(TranOrderItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2015-03-17 11:46:05
	 * @modified by
	 * @param newId
	 * @return
	 */
	TranOrderItem loadTranOrderItem(Long tranOrderId);

	/**
	 * 根据id号删除记录信息
	 * @author max.zheng
	 * @create 2015-03-17 11:46:05
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deleteTranOrderInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-03-17 11:46:05
	 * @modified by
	 * @param tranOrderIds
	 */
	boolean deleteTranOrderInfo(List<Long> tranOrderIds);

	/**
	 * 
	 * @author <a href="max.zheng@zkteco.com">郑志雄</>
	 * @since 2015-3-19 上午10:55:28
	 * @param pg
	 * @param object
	 * @return values
	 */
	Map<String, Object> loadPageWithPrivilege(Pagination pg,UserItem currentUser, Map<String, String> values);
}
